package com.itheima.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.pojo.Test;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: dalao
 * @date: 2020/4/3-19:52
 * @Version: 1.0.0
 */

@RequestMapping("/test")
@RestController
public class TestController {
    @Reference
    private TestService testService;

    @RequestMapping("/demo")
    public List<Test> demo(){
        List<Test> demo = testService.demo();
        return demo;
    }
}
